const Router = require('koa-router')
const router = new Router({ prefix: '/api-endpoint' })

router.get('/', async (ctx, next) => {
  ctx.body = { code: 200, data: 'get /api-endpoint' }
  await next()
})

router.get('/endpoint', async (ctx, next) => {
  ctx.body = { code: 200, data: 'get /api-endpoint/endpoint' }
  await next()
})

router.get('/auth-api-endpoint/:roleCode', async (ctx, next) => {
  ctx.body = { code: 200, data: 'get /api-endpoint/auth-api-endpoint/:roleCode' }
  await next()
})

module.exports = router
